package xin.sunzy.ssms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xin.sunzy.ssms.dao.intf.IValidDao;
import xin.sunzy.ssms.entity.po.Valid;
import xin.sunzy.ssms.service.intf.IValidService;

/**
 * Created by 17070725 on 2017/8/17.
 */

@Service("validService")
public class ValidService implements IValidService {

    @Autowired
    private IValidDao validDao;

    @Override
    public Valid getValidByPrimaryKey(Integer id) throws Exception {
        return validDao.getValidByPrimaryKey(id);
    }

    @Override
    public Valid getValidById(Integer id) throws Exception {
        return validDao.getValidById(id);
    }
}
